<template>
	<!--
    	作者：1550495493@qq.com
    	时间：2019-07-18
    	描述：公告发布
    -->
	<div class="HomePage">
		<div class="location">
			<div class="location-text fl">
				<img class="location-img fl" src="../../images/Course/gonggao.png" />
				<p class="fr" v-if="uuidid">公告修改</p>
				<p class="fr" v-if="!uuidid">公告发布</p>
			</div>
			<img class="biaotibg fl" src="../../images/home/biaotibg.png" />
		</div>
		<div class="IssuedNotice-box">
			<form id="announcementForm" class="form-box">
				<input type="hidden" name="id" :value="announcement.id" />
				<div class="form-line input-required ">
					<label>通知标题：</label>
					<div class="input-box">
						<input name="name" class="search-box" type="text" placeholder="请输入标题" :value="announcement.name" />
					</div>
				</div>
				<div class="search-boxs form-line  editor-box announcement-editor">
					<label><span>*</span>正文：</label>
					<!--<script name="content" class="editor" id="editor" type="text/plain" style="width: 700px;height: 270px; display: inline-block;  margin: -25px 0px -134px 105px;"></script>-->
          			<textarea name="content" class="editor" id="editor" style="width: 700px;height: 270px; display: inline-block;  margin: -25px 0px -134px 105px;"></textarea>
				</div>
				<input class="save fl" type="button" value="发布" @click="saveData" v-if="announcement.id == null" />
				<input class="save fl" type="button" value="保存" @click="updateData" v-else/>
			</form>
		</div>

	</div>
</template>

<script src="./TheAnnouncement.js"></script>

<style scoped>
	@import "TheAnnouncement.css"
</style>
